package com.addplus.townmall.server.api.model.town;

import com.baomidou.mybatisplus.annotation.TableName;
import com.addplus.townmall.server.api.model.base.BaseRestModel;
import com.baomidou.mybatisplus.annotation.TableField;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商城会员收货地址
 * </p>
 *
 * @author zhangjiehang
 * @since 2018-08-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("member_address")
public class MemberAddress extends BaseRestModel {

    private static final long serialVersionUID = 1L;

    /**
     * 关联用户主键id
     */
    private Integer memberId;
    /**
     * 收货人
     */
    private String receiptName;

    /**
     * 收货人固定电话
     */
    private String receiptPhone;

    /**
     * 收货人移动电话
     */
    private String receiptMobile;
    /**
     * 区域表省id
     */
    private Integer provinceId;

    /**
     * 区域表市id
     */
    private Integer cityId;

    /**
     * 区域表区/县id
     */
    private Integer countyId;

    /**
     * 区域表街/镇id
     */
    private Integer townId;

    /**
     * 收货具体街道信息
     */
    private String receiptAddress;

    /**
     * 收货具体全称(系统拼接)
     */
    private String receiptFullAddress;

    /**
     * 收货邮政编码
     */
    private String postalCode;

    /**
     * 是否默认(0:否 1:是)
     */
    @TableField("is_default")
    private Integer isDefault;

    /**
     * 是否删除(0:否 1:是)
     */
    @TableField("is_deleted")
    private Integer isDeleted;

}
